package org.csu.mypetstore.domain;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component("product")
public class Product {
    private String productId;
    private String categoryId;
    private String name;
    private String description;

    public void setProductId(String productId) {
        this.productId = productId.trim();
    }

    public String toString() {
        return getName();
    }
}
